import json

numbers = [1, 2, 3, 4, 5, 6]

fileName = './read_file/number.json'
with open(fileName, 'w') as obj_file:
    json.dump(numbers, obj_file)